Skip to content

feat: enable kprobes/ftrace on hi3516ev300, auto-mount debugfs#1982

Merged
widgetii merged 1 commit intomasterfrom
feat/hi3516ev300-kprobes-debugfs
Apr 6, 2026
Merged

feat: enable kprobes/ftrace on hi3516ev300, auto-mount debugfs#1982
widgetii merged 1 commit intomasterfrom
feat/hi3516ev300-kprobes-debugfs

Conversation

@widgetii
Copy link
Copy Markdown
Member

@widgetii widgetii commented Apr 4, 2026

Summary

  • Enable CONFIG_KPROBES, CONFIG_FTRACE, CONFIG_DEBUG_FS, CONFIG_KALLSYMS_ALL in hi3516ev300 kernel config
  • Add conditional S29debugfs init script to mount debugfs at boot (no-op on boards without debugfs support)
  • Trim unused ramdisk decompressors (keep only XZ) and debug options to fit 2048KB kernel limit

Kernel size: 2047KB / 2048KB

Test results (hi3516ev300_lite, 2026-04-06)

  • Build succeeds, kernel 2047KB / rootfs 4584KB (within flash limits)
  • /sys/kernel/debug/kprobes/enabled = 1
  • debugfs auto-mounted at boot
  • ftrace + kprobe_events available in /sys/kernel/debug/tracing/
  • /proc/kallsyms shows all 64814 symbols
  • Live kprobe test: attached probe to do_sys_open, trace events captured
  • /dev/sys created, majestic SDK starts successfully

🤖 Generated with Claude Code

@widgetii widgetii force-pushed the feat/hi3516ev300-kprobes-debugfs branch from ae1db6e to 355d1dc Compare April 6, 2026 10:42
Enable CONFIG_KPROBES, CONFIG_FTRACE, CONFIG_DEBUG_FS, and
CONFIG_KALLSYMS_ALL in hi3516ev300 kernel config. Add conditional
S29debugfs init script to mount debugfs at boot. Trim unused ramdisk
decompressors and debug options to fit 2048KB kernel limit.

Kernel size: 2047KB / 2048KB.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@widgetii widgetii force-pushed the feat/hi3516ev300-kprobes-debugfs branch from 355d1dc to 8b20df3 Compare April 6, 2026 11:09
@widgetii widgetii merged commit 4c20789 into master Apr 6, 2026
88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant